﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CRCDesktop.org.h1.crcDesktop.dao;
using CRCDesktop.org.h1.crcDesktop.basicClasses;

namespace CRCDesktop.org.h1.crcDesktop.business
{
    public class ControleConfig : IControleConfig
    {
        DAOConsultarConfig daoConsultarConfig;

        public ControleConfig()
        {
            daoConsultarConfig = new DAOConsultarConfig();
        }

        public void setarConfiguracao()
        {
            
        }

        public Config consultarConfig()
        {
            Config config = null;
            try
            {
                config = daoConsultarConfig.consultar();
            }
            catch (Exception e)
            {
                Console.WriteLine(e.StackTrace);
            }

            return config;
        }
    }
}
